package cc.zy.base.hr.service;

import cc.zy.base.common.entity.QueryRequest;
import cc.zy.base.hr.entity.Course;
import cc.zy.base.hr.entity.ExecuteSchedule;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 月计划执行表
 * Service
 * @author yan
 * @date 2021-01-18 10:51:13
 */
public interface IExecuteScheduleService extends IService<ExecuteSchedule> {

    /**
     * 分页
     * @param request
     * @param schedule
     * @return
     */
    IPage<ExecuteSchedule> findExecuteScheduleByPage(QueryRequest request, ExecuteSchedule schedule);

    /**
     * 通过ID查找详细信息
     * @param id
     * @return
     */
    ExecuteSchedule findById(Integer id);

    /**
     * 删除
     * @param id
     */
    void deleteExecuteSchedule(int id);

    /**
     * 计算总数
     * @return
     */
    long executeScheduleCount();

    /**
     * 查询所有课程名称
     * @return
     */
    List<Course> queryCourseName();

    /**
     * 修改ExecuteSchedule planDate
     * @param executeSchedule
     */
    void updatePlanDate(ExecuteSchedule executeSchedule);

    /**
     * Excel导出查询
     * @param executeSchedule
     * @return
     */
    List<ExecuteSchedule> findExecuteScheduleListNotPage(ExecuteSchedule executeSchedule);
}
